package pl.puntin.punclient.messages;

public class PunForDrawerMessage extends Message {

	public String punnie;
	
	@Override
	public byte getType() {
		return MessageTypes.S_PUN_FOR_DRAWER;
	}
	
	@Override
	protected void yourDataIsReadyInitYourSelf(final byte[] data)
	{
		int textLenght = 0;
		for (; textLenght < data.length; textLenght++)
		{
			if(data[1+textLenght] == 0)
				break;
		}
		
		punnie = new String(data, 1, textLenght);
	}
}
